package com.ruoyi.web.exception;

import com.ruoyi.core.constant.Constant;
import com.ruoyi.core.exception.BaseException;

/**
 * @author wanghao 913351190@qq.com
 * @create 2022/3/10 9:32
 */
public class TokenException extends BaseException {

    public TokenException(String message, Throwable cause) {
        super(Constant.CODE_LOGIN, message, cause);
    }

    public TokenException(String message) {
        this(message, null);
    }

    public TokenException(Throwable cause) {
        this(cause.getMessage(), cause);
    }
}
